export const rules = {
  appName: [
    { required: true, message: "请输入应用名称", trigger: "change" },
    { min: 1, max: 50, message: "长度在 1 到 50 个字符", trigger: "change" },
  ],
  logImg: [{ required: true, message: "请上传logo", trigger: "change" }],
  applictionFiles: [
    { required: true, message: "请上传应用图片", trigger: "change" },
  ],
  appIntroduce: [
    { required: true, message: "请输入应用介绍", trigger: "change" },
    {
      min: 1,
      max: 9999,
      message: "长度在 1 到 9999 个字符",
      trigger: "change",
    },
  ],
  appIntroduceFiles: [
    { required: true, message: "请上传应用介绍图", trigger: "change" },
  ],
  brandId: [{ required: true, message: "请选择品牌", trigger: "change" }],
  appArea: [
    { required: true, message: "请选择应用服务领域", trigger: "change" },
  ],
  appType: [{ required: true, message: "请选择应用分类", trigger: "change" }],
  appProvide: [
    { required: true, message: "请选择应用提供形式", trigger: "change" },
  ],
  appAccess: [
    { required: true, message: "请输入访问链接", trigger: "change" },
    { min: 1, max: 255, message: "长度在 1 到 255 个字符", trigger: "change" },
  ],
  functionFiles: [
    { required: true, message: "请上传主要功能", trigger: "change" },
  ],
  advantageFiles: [
    { required: true, message: "请上传主要优势", trigger: "change" },
  ],
  casefiles: [{ required: true, message: "请上传项目案例", trigger: "change" }],
};
